<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Profile.aspx.vb" Inherits="Profile" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Profile</title>

    <script language="javascript" type="text/javascript">
    Close = function(){
        window.parent.Close();
    };
    Success = function(){
        window.parent.Claim('<%=Request.QueryString("_ID") %>','<%=Request.QueryString("_PopUp") %>');
    };
    </script>

    <style type="text/css">
        .style1
        {
            color: #CC0000;
        }
    </style>
</head>
<body>
    <form id="GFORM" runat="server">
    <asp:Literal ID="litJs" runat="server"></asp:Literal>
    <div style="background-color: #F7F6F3; top: 0px; position: absolute; left: 0px; width: 100%;
        height: 100%;">
        <asp:Image ImageUrl="~/images/close.gif" onclick="Close();" AlternateText="Close"
            ToolTip="Close" ID="imgClose" runat="server" ImageAlign="Right" Style="padding-right: 10px;
            padding-top: 10px; cursor: pointer;" />
        <asp:Panel ID="plnMessage" runat="server" Style="padding: 20px;">
            <center>
                <strong>Congradulations!!!- </strong>
            </center>
            <br />
            On hitting a milestone that will allow you to redeem points for prizes. First you
            must fill out the form by clicking on the button below and once completed you are
            allowed to "Claim" your prize by selecting one of the two choices. 
            <br />
            <center>
                <asp:Button ID="btnfillOut" runat="server" Text="Fill out" /></center>
        </asp:Panel>
        <asp:Panel ID="pnlProfile" runat="server" Visible="false">
            <div align="center">
                <strong>Update your profile</strong></div>
            <div align="left" style="padding-top: 5px;">
                <table width="100%" border="0" cellpadding="1" cellspacing="1">
                    <tr>
                        <td align="right">
                            <span class="style1">*</span><asp:Label ID="lblLastName" runat="server" Text="Last Name: "></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtLastName" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtLastName"
                                Display="Dynamic" ErrorMessage="Enter Last Name"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <span class="style1">*</span><asp:Label ID="lblFirstName" runat="server" Text="First Name: "></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtFirstName" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtFirstName"
                                Display="Dynamic" ErrorMessage="Enter First Name"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <span class="style1">*</span><asp:Label ID="lblGender" runat="server" Text="Gender: "></asp:Label>
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlGender" runat="server">
                                <asp:ListItem Value="F">Female</asp:ListItem>
                                <asp:ListItem Value="M">Male</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <span class="style1">*</span><asp:Label ID="lblAddress" runat="server" Text="Address: "></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtAddress" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtAddress"
                                Display="Dynamic" ErrorMessage="Enter Address"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <span class="style1">*</span><asp:Label ID="lblCity" runat="server" Text="City: "></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtCity" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtCity"
                                Display="Dynamic" ErrorMessage="Enter City"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <span class="style1">*</span><asp:Label ID="lblState" runat="server" Text="State: "></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtState" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtState"
                                Display="Dynamic" ErrorMessage="Enter State"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <span class="style1">*</span><asp:Label ID="lblZip" runat="server" Text="Zip: "></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtZip" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtZip"
                                Display="Dynamic" ErrorMessage="Enter Zip"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <span class="style1">*</span><asp:Label ID="lblEmail" runat="server" Text="Email: "></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="txtEmail"
                                Display="Dynamic" ErrorMessage="Enter Email"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtEmail"
                                Display="Dynamic" ErrorMessage="Incorrect Email format" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <span class="style1">*</span><asp:Label ID="lblBirthDate" runat="server" Text="Birth Date: "></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtBirthDate" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="txtBirthDate"
                                Display="Dynamic" ErrorMessage="Enter Birth Date"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtBirthDate"
                                Display="Dynamic" ErrorMessage="Incorrect Date format try (mm/dd/yyyy)" ValidationExpression="(0[1-9]|1[012])[- /](0[1-9]|[12][0-9]|3[01])[- /](19|20)\d\d"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Label ID="lblPhoneNumber" runat="server" Text="Phone Number: "></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtPhoneNumber" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                        <td>
                            <asp:Label ID="lblMessage" runat="server" Style="color: Green;"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                        <td>
                            <asp:Button ID="btnSubmit" runat="server" Text="Submit" OnClick="btnSubmit_Click" />
                        </td>
                    </tr>
                </table>
            </div>
        </asp:Panel>
    </div>
    </form>
</body>
</html>
